package jd.client.get;

import jd.client.Response;
import jd.client.exception.ResponseParseException;

/**
 * 
 * @author Denis Migol
 * 
 */
public class GetSpeedResponse extends Response {

	private String speed;

	@Override
	public Response parse(final String response) throws ResponseParseException {
		setSpeed(response);
		return super.parse(response);
	}

	/**
	 * @param speed
	 *            the speed to set
	 */
	private void setSpeed(final String speed) {
		if (speed != null) {
			this.speed = speed.trim();
		} else {
			this.speed = speed;
		}
	}

	/**
	 * @return the speed
	 */
	public String getSpeed() {
		return speed;
	}

}
